package com.ddwl.goods.dao;

import com.ddwl.common.dao.TkDao;
import com.ddwl.goods.dao.mapper.ItemParamMapper;
import com.ddwl.goods.dao.model.ItemParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class ItemParamDao extends TkDao<ItemParamMapper, ItemParam> {
    @Autowired
    private ItemParamMapper itemParamMapper;

    public void deleteByCategoryId(String categoryId){
        ItemParam itemParam=new ItemParam();
        itemParam.setCategoryId(categoryId);
        itemParamMapper.delete(itemParam);
    }
}
